<template>
        <van-swipe class="swiperItem"  :autoplay="3000"  indicator-color="white">
            <van-swipe-item v-for="(item,index) in topImages"  :key="index+item">
                <img v-lazy="item" alt="" >
            </van-swipe-item>
        </van-swipe>
</template>

<script>
    /*import Vue from 'vue';
    import { Swipe, SwipeItem } from 'vant';
    Vue.use(Swipe).use(SwipeItem);*/
    //
    export default {
        name: "DetailSwiper",
        components: {
             //  Swipe,
             // SwipeItem,
        },
        props: {
            topImages: {
                type: Array,
                default() {
                    return []
                }
            }
        },
     /*   methods: {
            imageLoad() {
                this.$bus.$emit('itemImageload')
            },
        }*/

    }
</script>

<style scoped>

.swiperItem{
    height: 310px;
    overflow: hidden;
}
.swiperItem img {
    width: 100%;
}
</style>